package com.longkey.workflow.client.event
{
	import flash.events.Event;
	
	public class TemplateEvent extends Event
	{
		private var _templateId:Number;
		private var _templateName:String;
		
		public function TemplateEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false)
		{
			super(type, bubbles, cancelable);
		}
		
		public function get templateId():Number{
			return this._templateId;
		}
		
		public function set templateId(templateId:Number):void{
			this._templateId = templateId;
		}
		
		public function get templateName():String{
			return this._templateName;
		}
		
		public function set templateName(templateName:String):void{
			this._templateName = templateName;
		}
		
		override public function clone():Event{
			var c:TemplateEvent = new TemplateEvent(this.type, this.bubbles, this.cancelable);
			c.templateId = this.templateId;
			c.templateName = this.templateName;
			return c;
		}
		
	}
}